package com.chery.foxlogrecord.demo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.chery.foxlogrecord.core.annotation.LogRecordField;
import com.chery.foxlogrecord.demo.enums.RelationEnum;
import com.chery.foxlogrecord.extension.mybatis.BaseEntity;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * 用户表
 * @author qiangt
 * @since 2022-10-24
 */
@JsonIgnoreProperties(ignoreUnknown = true)
@Getter
@Setter
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ToString
@ApiModel(description = "家庭关系表")
@TableName(value = "user_family", autoResultMap = true)
public class UserFamily extends BaseEntity {

    @LogRecordField(value = "用户id")
    private Long userId;

    @ApiModelProperty(value = "姓名")
    @LogRecordField(value = "姓名")
    private String name;

    @LogRecordField(value = "与本人关系")
    @ApiModelProperty(value = "与本人关系")
    private RelationEnum relation;

}
